package com.practice2.exercise;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("User.xml");
        User user = (User) context.getBean("user1", User.class);
        User user2 = (User) context.getBean("user2",User.class);
        user.show();
        user2.show();
    }

}
